//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.CreateTable([['Giant Rooks','Bimbos 365 Club','San Francisco, CA','Monday','4/29/2024','8:00 PM','5975714','Giant-Rooks-4-29-2024'],['Bebel Gilberto','Bimbos 365 Club','San Francisco, CA','Sunday','5/19/2024','8:00 PM','6295378','Bebel-Gilberto-5-19-2024'],['Tainted Love','Bimbos 365 Club','San Francisco, CA','Saturday','6/1/2024','9:00 PM','6332260','Tainted-Love-6-1-2024'],['Cowboy Junkies','Bimbos 365 Club','San Francisco, CA','Sunday','6/9/2024','8:00 PM','6266045','Cowboy-Junkies-6-9-2024'],['Cowboy Junkies','Bimbos 365 Club','San Francisco, CA','Wednesday','6/12/2024','8:00 PM','6231155','Cowboy-Junkies-6-12-2024'],['The Alarm','Bimbos 365 Club','San Francisco, CA','Thursday','6/20/2024','8:00 PM','6346732','The-Alarm-6-20-2024'],['You Should Be Dancing - A Tribute to the Bee Gees','Bimbos 365 Club','San Francisco, CA','Friday','6/21/2024','9:00 PM','6354351','You-Should-Be-Dancing---A-Tribute-to-the-Bee-Gees-6-21-2024'],['Jessica Pratt','Bimbos 365 Club','San Francisco, CA','Saturday','6/22/2024','9:00 PM','6264287','Jessica-Pratt-6-22-2024'],['Hollow Coves','Bimbos 365 Club','San Francisco, CA','Monday','6/24/2024','8:00 PM','6125160','Hollow-Coves-6-24-2024'],['Sapphira Cristal','Bimbos 365 Club','San Francisco, CA','Wednesday','7/17/2024','8:00 PM','6397067','Sapphira-Cristal-7-17-2024'],['Cults','Bimbos 365 Club','San Francisco, CA','Thursday','8/15/2024','8:00 PM','6400505','Cults-8-15-2024'],['Boy and Bear','Bimbos 365 Club','San Francisco, CA','Saturday','9/7/2024','8:00 PM','6383833','Boy-and-Bear-9-7-2024'],['Dabeull Live Band','Bimbos 365 Club','San Francisco, CA','Friday','9/27/2024','9:00 PM','6330478','Dabeull-Live-Band-9-27-2024']],'Bimbos 365 Club','http://www.ticketnetwork.com/ticket/Bimbos-365-Club-events.aspx');